import angular from 'angular';
import template from './footer.component.html';
import './footer.component.scss'

class FooterController {
  constructor() {
    this.info = '这是页脚信息！！';
  }

  sendToSon() {
    this.info = new Date().getTime();
    // console.log(this.info)
  }

  $onInit() {

  }

  $onChanges() {
  }

  $onDestroy() {
  }

  $postLink() {
  }
}

export default angular.module('core.footer', [])
  .component('coreFooter', {
    restrict: 'E',
    template: template,
    controller: FooterController,
    controllerAs: 'ctrl',
    bindings: {
      detail: '<'
    }
  })
  .name;